package com.af.monitorModule.generator.service;

import com.af.monitorModule.generator.entity.TimedTask;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyz_4dou
 * @since 2021-03-02
 */
@Component
public interface TimedTaskService extends IService<TimedTask> {

    JSONObject getRunTask(String monitor);

    String sendOver(String task);

    JSONObject findTask(String page,String limit, JSONObject search);

    JSONObject changeState(String id);

    JSONObject batchStop(JSONObject ids);

    JSONObject addTask(TimedTask timedTask);

    JSONObject updateTask(TimedTask timedTask,String id);

    JSONObject runNow(String id);

}
